# from datetime import datetime
# class Utilities(object):
#     """实用类方法集合"""
#     @staticmethod
#     def get_current_time():
#         now_time = datetime.now()
#         return datetime.strftime(now_time,'%Y-%m-%d')
#
# time = Utilities.get_current_time()
# print(time)

class Person(object):
    def __init__(self,name,age):
        self.naem = name
        self.age = age
    def __gt__(self,other):
        if isinstance(other,Person):
            return self.age > other.age
        else:
            raise ValueError('类型错误，不能比脚')

class Animal(Person):
    pass

zhao = Person('zhao',18)
li = Person('li',19)
cat = Animal('cat',3)
print(zhao > cat)
"""在类和对象中添加了数据"""
